package lili.com.my.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import org.xutils.x;

import lili.com.my.R;

public class CourseDetailActivity extends AppCompatActivity {

    private ImageView imgurl;
    private TextView des;
    private String videourl1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_course_detail);
        imgurl = (ImageView) findViewById(R.id.imgurl);
        des = (TextView) findViewById(R.id.des);
        String imgurl1=getIntent().getStringExtra("imgurl");
        String des1=getIntent().getStringExtra("des");
        videourl1 = getIntent().getStringExtra("videourl");
        x.image().bind(imgurl,imgurl1);
        des.setText(des1);


    }
    public void jumptovideo(View view){
        Intent intent=new Intent(this,VideoActivity.class);
        intent.putExtra("videourl",videourl1);
        startActivity(intent);
    }
}
